<?php
/*
 * @ https://EasyToYou.eu - IonCube v11 Decoder Online
 * @ PHP 7.2 & 7.3
 * @ Decoder version: 1.1.6
 * @ Release: 10/08/2022
 */

// Decoded file for php version 71.
namespace app\Common\service;

class Service
{
    public static function getUserOpenId($userId)
    {
        $user = new \app\Common\model\LongbingUser();
        $openid = $user->where(["id" => $userId])->value("openid");
        return $openid;
    }
    public static function getUserNickNameOpenId($userId)
    {
        $user = new \app\Common\model\LongbingUser();
        $nickName = $user->where(["id" => $userId])->value("nickName");
        return $nickName;
    }
    public static function isUser($uniacid, $userId)
    {
        $user = new \app\Common\model\LongbingUser();
        $info = $user->where(["uniacid" => $uniacid])->find($userId);
        return $info ? true : false;
    }
}

?>